<?php
require_once '../../common.inc.php';
try {
	$ftp = new Ftp;
	$ftp->connect('192.168.1.101');
	$ftp->login('zhaodianyou', '123456');
	$ftp->fileExists('/test/');
	$ftp->mkDirRecursive('/test/');
	$ftp->put('test/i.php', DT_ROOT.'/i.php', FTP_BINARY);
//	$ftp->get(DT_ROOT.'/a.php', 'test/i.php', FTP_BINARY);


} catch (FtpException $e) {
	echo 'Error: ', $e->getMessage();
}